
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="bjui-pageContent" style="background: #FFF;">
	<form action="${ctx}/sys/sysSliderAction/doSave" class="ajaxForm"
		data-toggle="validate" enctype="multipart/form-data">
		<input type="hidden" name="op" id="j_dialog_op"
			value="${param.op}${op}"> <input type="hidden" name="id"
			id="j_dialog_id" value="${slider.id}">
		<c:if test="${!empty role}">
			<input type="hidden" name="status" id="j_dialog_op"
				value="${slider.status}">
		</c:if>

		<table class="table table-condensed table-hover">
			<tbody>
				<tr style="height: 30px;">
					<td colspan="2" align="center" valign="middle"><h4>${title}</h4></td>
				</tr>
				<tr style="height: 30px;">
					<td><label for="name" class="control-label x90">幻灯类型：</label>
					               <select id="j_dialog_type_id" name="sliderTypeName" data-toggle="selectpicker">
                        	<c:forEach items="${code}"  var="c">
                        		<c:choose>
                        			<c:when test="${slider.sliderTypeId==c.codeValue}">
                        				<option value="${c.codeValue}_${c.codeName}" selected="selected">${c.codeName}</option>
                        			</c:when>
                        			<c:otherwise>
                        				<option value="${c.codeValue}_${c.codeName}" >${c.codeName}</option>
                        			</c:otherwise>
                        		</c:choose>
                        	</c:forEach>
                        </select>

					<td><label for="name" class="control-label x90">幻灯标题：</label>
						<input class="" id="sliderTitle" type="text" name="sliderTitle"
						value="${slider.sliderTitle}" data-rule="required;"/></td>
				</tr>

				<tr style="height: 30px;">
					<td><label for="name" class="control-label x90">链接地址：</label>
						<input class="" id="linkUrl" type="text" name="linkUrl"
						value="${slider.linkUrl}" /></td>
                 <td><label for="name" class="control-label x90">幻灯排序：</label>
						<input class="" id="seqIdx" type="text" name="seqIdx"
						value="${slider.seqIdx}" /></td>
					
				</tr>
				<tr >
					<td colspan="2"><label for="name" class="control-label x90">图片地址：</label>
					<input class="" id="imageUrl" type="text" name="imageUrl" readonly="readonly"
						value="${slider.imageUrl}" />
						<input type="file" name="file" 
					 accept="image/*"
					style="width: 40%;" >
					</td></tr>
				
				<tr style="height: 30px;">
					<td colspan="2"><label for="description"
						class="control-label x90">幻灯内容：</label> <textarea
							name="sliderContent" id="sliderContent" rows="5" cols="58">${slider.sliderContent}</textarea>
					</td>
				</tr>


				<tr style="height: 30px;">
					<td colspan="2"><label for="description"
						class="control-label x90">备注：</label> <textarea name="remark"
							id="remark" rows="5" cols="58">${slider.remark}</textarea></td>
				</tr>
			</tbody>
		</table>
	</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>